package com.zjitc.log;

import org.apache.log4j.Logger;

/**
 * Create By IntelliJ IDEA
 *
 * @Author: jsonor
 * @Create-Time: 2017/9/18 15:39
 * @Description: Log4J日志测试
 */
public class Log4jDemo {

  // Logger 实在org.apache.log4j包下
  // Log4jDemo.class： 在哪个类中就写哪个类的class
  private static final Logger logger = Logger.getLogger(Log4jDemo.class);


  public static void main(String[] args) {
    // debug < info < warn < error < fatal
    logger.debug("debug");
    logger.info("info");
    logger.warn("warn");
    logger.error("error");
    logger.fatal("fatal");
  }
}
